from django.contrib import admin
from .models import DailyReport, ReportReview


@admin.register(DailyReport)
class DailyReportAdmin(admin.ModelAdmin):
    list_display = ['user', 'group', 'report_date', 'status', 'submitted_at']
    list_filter = ['status', 'report_date', 'submitted_at']
    search_fields = ['user__username', 'group__name', 'content']


@admin.register(ReportReview)
class ReportReviewAdmin(admin.ModelAdmin):
    list_display = ['report', 'reviewer', 'status', 'reviewed_at']
    list_filter = ['status', 'reviewed_at']
    search_fields = ['reviewer__username', 'comment']
